package com.jsz.peini.mapper.activity;

import com.jsz.peini.bean.activity.ActivityInfo;
import com.jsz.peini.bean.activity.ActivityInfoExample;
import java.util.List;

public interface ActivityInfoMapper {
    int countByExample(ActivityInfoExample example);

    int deleteByPrimaryKey(String acId);

    int insert(ActivityInfo record);

    int insertSelective(ActivityInfo record);

    List<ActivityInfo> selectByExampleWithBLOBs(ActivityInfoExample example);

    List<ActivityInfo> selectByExample(ActivityInfoExample example);

    ActivityInfo selectByPrimaryKey(String acId);

    int updateByPrimaryKeySelective(ActivityInfo record);

    int updateByPrimaryKeyWithBLOBs(ActivityInfo record);

    int updateByPrimaryKey(ActivityInfo record);
    
    /**
     * 根据距离获取活动
     * @author Han Guohong
     * @param info
     * @return
     */
    List<ActivityInfo> selectByJuli(ActivityInfo info);
    //获得即将开始报名的活动
    List<ActivityInfo> getActivityInfoByWillStart(ActivityInfo activityInfo);
    //获得已经开始的活动
    List<ActivityInfo> getActivityInfoByStart(ActivityInfo activityInfo);
    //获得已经结束的活动
    List<ActivityInfo> getActivityInfoByEnd(ActivityInfo activityInfo);
}